﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace kwifi
{
    public partial class Form1 : Form
    {
        private object singleNet;

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {


            Process[] myproc = Process.GetProcesses();
            foreach (Process item in myproc)
            {
                if (item.ProcessName == "singleNet")
                {
                    item.Kill();
                }
            }
           System.Diagnostics.Process.Start(@"D:\Program Files (x86)\kingsoft\kwifi\kwifi.exe");

        }
            }
            
        }